package com.bdqn.springsecurity1.mapper;

import com.bdqn.springsecurity1.pojo.Role;
import com.bdqn.springsecurity1.pojo.TUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    TUser findUserByName(String username);

    List<Role> findRolesByUserId(int id);
}
